package work.xiaohong.order.fallback;

import work.xiaohong.model.Result;
import org.springframework.stereotype.Component;
import work.xiaohong.order.feign.AccountFeign;
import work.xiaohong.order.to.AccountTbl;

/**
 * @author xiaohong
 * @version 1.0
 * @date 2021/11/13 0013 13:44
 * @description account远程调用降级回调
 */
@Component
public class AccountFallback implements AccountFeign {

    @Override
    public Result<AccountTbl> findById(Integer id) {
        System.out.println("AccountFeign-findById方法远程调用失败");
        return null;
    }

    @Override
    public Result updateById(AccountTbl accountTbl) {
        System.out.println("AccountFeign-updateById方法远程调用失败");
        return null;
    }

}
